#include "Fight.h"

int main()
{
	/*F_Warrior warrior;
	warrior.skillBurn();
	warrior.skillBurn();
	warrior.skillBurn();
	warrior.skillBurn();
	warrior.skillBurn();
	warrior.skillBurn();
	std::cout << "---------------------" << std::endl;

	F_Mage mage;
	mage.skillBurn();
	mage.skillBurn();
	mage.skillBurn();
	mage.skillBurn();
	mage.skillBurn();*/


	Fighter* warrior = new F_Warrior();
	warrior->skillBurn();

	Fighter* mage = new F_Mage();	// 父类指针指向子类
	mage->skillBurn();	

	F_Warrior warrior2;
	F_Mage mage2;

	return 0;
}